import request from '@/utils/request'
// https://api.wuliuren.com/api/stations
export function getStationsList() {
    return request({
        url: '/stations',
        method: 'get'
    })
}

 // https://api.wuliuren.com/api/stations
 export function addStations(data) {
  return request({
      url: '/stations',
      method: 'post',
      data: data
  })
}

 // https://api.wuliuren.com/api/stations
export function updateStations(data) {
  return request({
      url: '/stations/' + data.id,
      method: 'put',
      data: data
  })
}

 // https://api.wuliuren.com/api/stations
export function deleteStations(data) {
  return request({
      url: '/stations/' + data.id,
      method: 'delete'
  })
}
